﻿using System;
using EPiServer.Core;
using EPiServer.SpecializedProperties;
using EPiServer.Web.PropertyControls;

namespace TemplateFoundation.UI.WebControls
{
    internal class SimplePropertyPageReferenceControl : PropertyUrlControlBase
    {
        public SimplePropertyPageReferenceControl()
        {
            PropertyData = new PropertyPageReference();
            RenderType = RenderType.Edit;
        }

        public string SelectedPageUrl
        {
            get
            {
                return LinkUrl;
            }
            set
            {
                LinkUrl = value;
            }
        }
    }
}
